# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_author=DPARIS
_perlmod=Crypt-IDEA
pkgname=perl-crypt-idea
pkgver=1.10
pkgrel=16
pkgdesc='Perl interface to IDEA block cipher.'
arch=('x86_64' 'aarch64')
url='http://search.cpan.org/~DPARIS/Crypt-IDEA-1.10/'
license=('GPL' 'PerlArtistic')
depends=('perl' 'gmp')
options=(!emptydirs)
source=("http://cpan.perl.org/modules/by-authors/id/D/DP/$_author/$_perlmod-$pkgver.tar.gz")
sha512sums=('2459f8f8ca088564b037101129796d6d3652062e80f9342173508df95b60ceb9ccb836b946d50127f86b38b239e25c58e1f4efde4eb73a5b24fc823a100fd018')

build() {
  cd "$_perlmod-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_perlmod-$pkgver"

  make install DESTDIR="$pkgdir"
}

